﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterNhanSuTienLuong.Master" Inherits="System.Web.Mvc.ViewPage<DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.FormBean.NhanVienModel.XeVanTaiForm>" %>

<%@ Import Namespace="DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.LinQ.NhanVien" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  
           <script language="javascript" type="text/javascript">
               $(document).ready(function () {
                   selectMenu("XeVanTai-DanhSachXeVanTai");
                   $("#XeVanTai-DanhSachXeVanTai").parent().attr("class", "expanded");
               });
    </script>
      <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/NhanVien/NhanVien.js") %>"></script>
      <form id="form" action="#" class="formBox">
           <div class="box">
                 <div class="breadcrumbs">
          <ul>
            <li class="home"><a href="">Quản lý xe</a></li>
            <li><a href="">Danh sách lịch sử ngày bảo hiểm </a></li>
            <li>Page</li>
          </ul>
        </div>
           <div class="headlines">
            <h2>
                <span>Danh sách lịch sử ngày bảo hiểm</span>
            </h2>
               <%-- <a class="show-filter" href="#">show filter</a>--%>
        </div>

       
           <table class="table_input" style="margin: 5px 5px 5px 30px">
         
                <tr>
                <td nowrap="nowrap" class="lab">
                    Bảng kiểm soát
                </td>
                <td >
                    <input type="text" id="HoTen" name="HoTen" readonly="readonly" value="<%=Model.BangKiemSoat %>" style="width: 90%" />
                </td>
                 <td nowrap="nowrap" style="width: 80px;"class="lab">
                    Năm sản xuất
                </td>
                <td >
                    <input type="text" id="NamSinh" name="NamSinh" readonly="readonly" value="<%=Model.NamSanXuat %>" style="width: 90%" />
                </td>
            </tr>
            <tr>
               
            </tr>
            <tr>
                <td nowrap="nowrap" style="width: 110px;"class="lab">
                    Hạn dùng
                </td>
                <td >
                    <input type="text" id="SoCMND" name="SoCMND" readonly="readonly" value="<%=Model.NamHanSuDung %>"
                        style="width: 90%" />
                   
                </td>
                <td nowrap="nowrap" style="width: 70px"class="lab">
                   Trọng tải
                </td>
                <td>
                    <input type="text" id="SoThe" name="SoThe" readonly="readonly" value="<%=Model.TrongTai %>" style="width: 90%" />
                </td>
            </tr>
            <tr>
                <td class="btn-submit">
                    <input type="button" class="button" value="Quay lại" onclick="javascript:history.back();"/>
                </td>
            </tr>
            </table>

      <table class="table_outsite"style="width: 100%" >
            <tr>
                <td colspan="2">
                    <div id="Message" style="font-size: 12px; color: Blue; font-weight: bold">
                        <%=Model.Message%>
                    </div>
                    <div id="MessageError" style="font-size: 12px; color: Red; font-weight: bold">
                        <%=Model.MessageError%>
                    </div>
                </td>
            </tr>
         
            <tr>
                <td colspan="2">
                    <table class="tab tab-drag">
                        <thead>
                            <tr  class="top nodrop nodrag" style="font-weight: bold">
                                <td class="first" align="center">
                                    STT
                                </td>
                               <%-- <td>
                                </td>--%>
                                <td nowrap="nowrap">
                                    <strong>Ngày hết hạn bảo hiểm </strong>
                                </td>
                            </tr>
                        </thead>
                        <tbody>
                            <% 
                                int stt = (Model.Pagenumber - 1) * DTTB.Common.CommonVariables.PaggedItemsPerPage + 1;
                                foreach (pt_XeVanTai_NgayBaoHiemXe item in Model.PtXeVanTaiNgayBaoHiemPagedList)
                                {
                            %>
                            <tr>
                                <td align="center" class="first">
                                    <%= stt %>
                                </td>
                               <%-- <td>
                                    <% if (item.IsDuyet == false)
                                       { %>
                                    <input type="checkbox" name="chk" value="<%=item.Id %>" />
                                    <% } %>
                                </td>--%>
                                <td>
                                    <a  onclick="javascript:DoViewDetail(<%= item.Id %>)">
                                        <%= string.Format("{0:dd/MM/yyyy}",item.NgayBaoHiem) %>
                                    </a>
                                </td>
                            </tr>
                            <%
                            stt++;}
                            %>
                        </tbody>
                        <tfoot>
                            <tr class="border_bottom">
                                <td class="first" style="background: #DDDDDD">
                                </td>
                                <td class="last" colspan="6" align="right" style="background: #DDDDDD; padding-right: 10px">
                                    <%
                                        PagerOptions pagerOptions = new PagerOptions();
                                        DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate.CommonDelegate CommonDelegate= new  DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate.CommonDelegate();
                                        CommonDelegate.ChangeTextPaging(pagerOptions, "idPhanTrang");
                                    %>
                                    <div>
                                        <%=Html.Pager(Model.PtXeVanTaiNgayBaoHiemPagedList, pagerOptions, new object())%></div>
                                    <%=Html.Hidden("Pagenumber", Model.Pagenumber)%>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </td>
            </tr>
        </table>
        </div>
        </form>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    
</asp:Content>
